<!DOCTYPE html>
{#{% load static %}#}
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>登录</title>
{#  <link rel="stylesheet" type="text/css" href="{% static 'css/style.css' %}">#}
</head>
<body>
  <h1>欢迎登录</h1>
  <div style="color: darkorange;" name="message">
    {% if message %}
      {{ message }}
    {% endif %}
  </div>

  <!--登录表单-->
  <div>
    <form action="/login/" method="post">
      {% csrf_token %}
      <label>用户名：</label>
      <input type="text" name="username" placeholder="请输入用户名...">
      <br>
      <label>密码：</label>
      <input type="password" name="password" placeholder="请输入密码...">
      <br>
      <input type="submit" value="登录">
    </form>
    <a href="/register/">
      <input type="submit" value="注册">
    </a>
  </div>
</body>
</html>